package com.cs.mediator1;

/**
 * @author Sam.Lee E-mail:lishanman2007@163.com
 * @version Created：Aug 31, 2011 4:31:56 PM
 */
public class WTO implements Mediator {

	private China china;
	private Japan japan;

	public void setChina(China china) {
		this.china = china;
	}

	public void setJapan(Japan japan) {
		this.japan = japan;
	}

	public void update(Colleague colleague) {
		if (colleague instanceof China) {
			System.out.println("China做了一些工作，Mediator通知了大家...");
		} else if (colleague instanceof Japan) {
			System.out.println("Japan做了一些工作，Mediator通知了大家...");
		}
	}

}
